import pyautogui

# 屏幕大小
print(pyautogui.size())
# 鼠标位置 x ，y
print(pyautogui.position())
# 鼠标位置是否在屏幕内
print(pyautogui.onScreen(10220,100))
# # 移动鼠标位置
# pyautogui.moveTo(1902,1000,duration=2)
#
# pyautogui.dragTo(100,500,button='left',duration=3)
#
# pyautogui.move(0,-100,2)
# pyautogui.drag(100,0,button='right',duration=3)


x,y = pyautogui.position()
# click 点击次数  interval =间隔时间
pyautogui.click(x,y,button='right',click=3,interval=0.26,duration=3)

pyautogui.doubleClick


# 鼠标拖动
pyautogui.mouseDown(button='left')
pyautogui.move(100,0)
pyautogui.mouseUp(button='left')

# 输入内容
pyautogui.write("holle word",interval=0.24)

# 鼠标按键
pyautogui.press('x')
# pyautogui.moveTo(1100,500,3)

# 复制操作
pyautogui.hotkey('ctrl','v')

